package cn.maiyar.dingding;

import cn.maiyar.dingding.menu.DingDingTextType;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 钉钉通知配置文件
 *
 * @author c.c
 */
@Getter
@Setter
@ConfigurationProperties("meta.dingding")
public class DingDingProperties {
    // 是否开启钉钉通知
    private boolean enabled = false;
    // web hook
    private String robot;
    // 电话信息
    private String[] phoneNum;
    // 是否开启验签
    private boolean enableSignatureCheck = true;
    // 验签秘钥
    private String secret;
    // 钉钉通知文本类型
    private DingDingTextType dingdingTextType = DingDingTextType.TEXT;
}
